Repository navigation
fix(heybox-up): reapply saved layout preferences after an official homepage start - #270
Merged
Merged
Conversation
…mepage start The boot pass skips every layout write on the official homepage, and the per-route sync hooks never replayed the column width, body line height or nav motion choice. A cold start at "/" followed by in-app navigation therefore left those three settings at their stylesheet defaults while the gear menu kept showing the stored values. Replay the three preferences from watchTheme()/watchTopNav() on each adapted route, drop the inline custom properties in releaseTheme() so the untouched homepage stays clean, and add scope hints to the two look-alike sliders. Refs: #269
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked Issue
Closes #269.
Change summary
/): the boot pass skips layout writes there, and the per-route sync hooks never replayed the column width, body line height or nav motion choice. A cold start at/followed by in-app navigation therefore left those three settings at their stylesheet defaults while the gear menu kept showing the stored values.watchTheme().sync()now replaysapplyFeedWidth(readFeedWidth())andapplyReaderLineHeight(readReaderLineHeight())on every adapted route, after the theme preset is applied.watchTopNav().sync()now replaysapplyNavMotionPreference(readNavMotionPreference())beforemountTopNav().releaseTheme()now removes both inline custom properties (--heybox-up-feed-pct,--heybox-up-reading-line-height) so the untouched homepage stays clean after an adapted page has been visited./app/bbs/home).Verification & Dependencies
pnpm typecheck- pass.pnpm test- 60 files / 925 tests pass, including the new 7-test replay regression suite (tests/heybox-up-settings-replay.test.ts).pnpm build -- --target heybox-up- pass;dist/heybox-up.user.jsreports@version 0.12.22.Review conclusion
Self-review PASS: 4.90/5.00. No open P0/P1/P2 findings.
Permission Notice
This change was written with the repository owner's standing autonomous delivery consent; it modifies only repository-owned source, tests, docs and version metadata.